<template>
  <div class="nav mf">
      <div class="left icon-back iconfont" @click="back"></div>
      <div class="center mf1">{{title}}</div>
      <div class="right"></div>
  </div>
</template>

<script>
export default {
    props: {
        title: {
            type: String,
            required: true
        }
    },

  components: {},

  computed: {},

  methods: {
      back(){
          this.$router.back();
      }
  }
}

</script>
<style scoped>
    .nav{
        height: 49px;
    }

    .nav{
        align-items: center;
        margin: 10px 5px;
        border-top: 1px solid #E1E1E3;
        border-bottom: 1px solid #E1E1E3;
        padding-top: 3px;
        padding-bottom: 3px;
    }
    .nav > div {
        box-sizing: border-box;
        text-align: center;
        font-size: 18px;
    }
    .nav > .left,.nav > .right {
        text-align: center;
        width: 80px;
        font-size: 26px ;
    }
    .nav > .left {
        text-align: left;
        padding-left: 10px;
    }
</style>